<?php echo $this->render('common/header.phtml'); ?>

<table border="1" style="border-collapse:collapse; width:100%;  float:left; border-width:0; margin-bottom:30px;"  cellspacing="1" cellpadding="6" align="center" class="tborder">
	<caption style="margin-top:10px; margin-bottom:10px; font-size:16px; font-weight:bold; text-transform: uppercase;">
		<?php echo $this->categoryName;?>
	</caption>


	<tr align="center" style="height: 35px;background-color:#FFFF66;color:#FF3300;">
		<td></td>
		<td><?php echo $this->translate('Bài viết');?></td>
		<td><?php echo $this->translate('Người gửi');?></td>
		<td><?php echo $this->translate('Lượt xem');?></td>
		
	</tr>
<tbody>
	<?php if(!empty($this->pageList)){?>
		<?php foreach($this->pageList as $onePage){?>
			<tr align="center" style="min-height: 40px;">
				<td class="alt2"><img border="0" id="forum_statusicon_2" alt="" width="25px"  src="<?php echo $this->baseUrl('/public/images/system/f_post.jpg');?>"/></td>
				<td align="left" id="f2" class="alt1Active">
					<div>
						<a target="_blank" href="<?php echo $this->baseUrl('category/page/id/'.$onePage['id']); ?>"><strong><?php echo $onePage['name']?></strong></a>
						<span class="smallfont"></span>
					</div>		
				</td>
				<td class="alt2">
					<div align="left" class="smallfont">
						<div align="right" style="white-space:nowrap; float: right;">
							<?php echo date('d-m-Y', strtotime($onePage['last_modify'])); ?>
							<span class="time"><?php echo date('H:i', strtotime($onePage['last_modify'])); ?></span>
							<a href="<?php echo $this->baseUrl('category/page/id/'.$onePage['id']); ?>"><img border="0" alt="Go to last post" src="<?php echo $this->baseUrl('/public/images/system/viewdetail.gif'); ?>" class="inlineimg" title="Go to last post"></a>
						</div>
						<?php if(!empty($onePage['author'])){ ?>
							by <a rel="nofollow" href="javascript:;"><?php echo $onePage['author']?></a>
						<?php }?>
					</div>
				</td>
				<td class="alt1"><?php echo number_format((double)$onePage['viewcount']); ?></td>
			
			</tr>
		<?php }?>
	<?php }?>

</tbody>
</table>
    
<?php echo $this->render('common/footer.phtml'); ?>